package top.jybill.domain;

import org.springframework.stereotype.Component;

import java.sql.Timestamp;

@Component
public class SysLog {
  private String id;
  private Timestamp visitTime; // 访问开始时间
  private String username; // 访问用户
  private String ip;
  private String url;
  private Long executionTime; // 访问时长
  private String method; // 访问方法

  public String getId() {
    return id;
  }

  public void setId(String id) {
    this.id = id;
  }

  public Timestamp getVisitTime() {
    return visitTime;
  }

  public void setVisitTime(Timestamp visitTime) {
    this.visitTime = visitTime;
  }

  public String getUsername() {
    return username;
  }

  public void setUsername(String username) {
    this.username = username;
  }

  public String getIp() {
    return ip;
  }

  public void setIp(String ip) {
    this.ip = ip;
  }

  public String getUrl() {
    return url;
  }

  public void setUrl(String url) {
    this.url = url;
  }

  public Long getExecutionTime() {
    return executionTime;
  }

  public void setExecutionTime(Long executionTime) {
    this.executionTime = executionTime;
  }

  public String getMethod() {
    return method;
  }

  public void setMethod(String method) {
    this.method = method;
  }

  @Override
  public String toString() {
    return "SysLog{" +
            "id='" + id + '\'' +
            ", visitTime=" + visitTime +
            ", username='" + username + '\'' +
            ", ip='" + ip + '\'' +
            ", url='" + url + '\'' +
            ", executionTime=" + executionTime +
            ", method='" + method + '\'' +
            '}';
  }
}
